from django.conf.urls.defaults import patterns, url
from books.views import book_index, book_detail, book_add

urlpatterns = patterns('',
    url(r'^(?P<book_id>\d+)/$', book_detail, name='book_detail'),
    url(r'^$', book_index, name='book_index'),
    url(r'^add/$', book_add, name='book_add'),
)
